<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use \yii\helpers\Url;

/* @var $class array */
/* @var $this yii\web\View */
/* @var $model backend\models\Student */
/* @var $form yii\widgets\ActiveForm */
?>
<div class = "user-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field( $model , 'name' )->textInput( [ 'maxlength' => TRUE ] ) ?>
    <?= $form->field( $model , 'mobile_phone' )->textInput( [ 'maxlength' => TRUE ] ) ?>

    <?= $form->field( $model , 'username' )->textInput( [ 'maxlength' => TRUE ] ) ?>
    <?= $form->field( $model , 'password' )->textInput( [ 'maxlength' => TRUE ] ) ?>

    <div class = "form-group">
        <?= Html::submitButton( $model->isNewRecord ? '创建' : '更新' , [ 'class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary' ] ) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>


